﻿using BLL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace InventoryMIS2019.conn
{
  public   class DataBinding
    {
        public static void SupplierComboBox(ComboBox controlName)
        {
            List<Supplier> sList = new List<Supplier>();
            sList = new SupplierBLL().GetList();
            controlName.DataSource = sList.ToArray();
            controlName.DisplayMember = "SupplierName";
            controlName.ValueMember = "SupplierID";
        }
    }
}
